<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li{
            list-style: none;

            float: left;

            background: #ccc;
            width: 90px;
            height: 36px;
            text-align: center;
            line-height: 36px;
        }
        li:hover{
            background: #3071f2;
            color: #fff;
        }
    </style>
</head>
<body>
    <ul>
        <li>新闻</li>
        <li>体育</li>
        <li>娱乐</li>
        <li>财经</li>
        <li>军事</li>
        <li>教育</li>
        <li>医疗</li>
    </ul>
</body>
</html>